import React from "react";

import ReactJson from "react-json-view";

export default function UserInfo() {
  const data = [
    {
      name: "黑子",
      sex: "男",
      Age: 25,
      hobby: ["篮球", "跑步", "看电影", "王者荣耀"],
      normal: true,
    },
    {
      name: "张三",
      sex: "男",
      Age: 25,
      hobby: ["上天", "入地"],
      normal: false,
    },
  ];



  return (
    <div>
      <ReactJson
      theme={"tomorrow:inverted"}
        src={data}
        collapsed={false}
        name={false}
        enableClipboard={false}
        displayObjectSize={false}
        displayDataTypes={false}
      />

    </div>
  );
}
